// by Xeno
//#define __DEBUG__
#define THIS_FILE "fn_addtoclean.sqf"
#include "x_setup.sqf"

private "_vec";
PARAMS_1(_vec);
__addDead(_vec)
#ifdef __TT__
_vec addMPEventHandler ["MPkilled", {if (isServer) then {[[30, 10, 5, 1],_this select 1, _this select 0] call FUNC(AddKills);(_this select 0) removeAllMPEventHandlers "MPKilled"}}];
#endif
if (GVAR(with_ai) && {GVAR(with_ranked)}) then {
	_vec addEventHandler ["killed", {if (!isPlayer (_this select 1)) then {[QGVAR(AddKillAI), [8,_this select 1]] call FUNC(NetCallEventCTS)}}];
};
if (GVAR(LockAir) == 0) then {_vec lock true};